Optimal. Leaf size=44 \[ \frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2505, 211}
\begin {gather*} \frac {2 \sqrt {b} p \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 2505
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (a+b x^2\right )^p\right )}{x^2} \, dx &=-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{x}+(2 b p) \int \frac {1}{a+b x^2} \, dx\\ &=\frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 44, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.22, size = 195, normalized size = 4.43
method | result | size |
risch | \(-\frac {\ln \left (\left (b \,x^{2}+a \right )^{p}\right )}{x}-\frac {i \pi a \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2}-i \pi a \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-i \pi a \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{3}+i \pi a \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-2 \sqrt {-b a}\, p \ln \left (-b x -\sqrt {-b a}\right ) x +2 \sqrt {-b a}\, p \ln \left (-b x +\sqrt {-b a}\right ) x +2 \ln \left (c \right ) a}{2 a x}\) | \(195\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 36, normalized size = 0.82 \begin {gather*} \frac {2 \, b p \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} - \frac {\log \left ({\left (b x^{2} + a\right )}^{p} c\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 105, normalized size = 2.39 \begin {gather*} \left [\frac {p x \sqrt {-\frac {b}{a}} \log \left (\frac {b x^{2} + 2 \, a x \sqrt {-\frac {b}{a}} - a}{b x^{2} + a}\right ) - p \log \left (b x^{2} + a\right ) - \log \left (c\right )}{x}, \frac {2 \, p x \sqrt {\frac {b}{a}} \arctan \left (x \sqrt {\frac {b}{a}}\right ) - p \log \left (b x^{2} + a\right ) - \log \left (c\right )}{x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 245 vs.
\(2 (39) = 78\).
time = 7.95, size = 245, normalized size = 5.57 \begin {gather*} \begin {cases} - \frac {\log {\left (0^{p} c \right )}}{x} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {\log {\left (a^{p} c \right )}}{x} & \text {for}\: b = 0 \\- \frac {2 p}{x} - \frac {\log {\left (c \left (b x^{2}\right )^{p} \right )}}{x} & \text {for}\: a = 0 \\- \frac {a^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{a^{2} x + a b x^{3}} - \frac {2 a p x \sqrt {- \frac {a}{b}} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{\frac {a^{2} x}{b} + a x^{3}} - \frac {a x^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {a^{2} x}{b} + a x^{3}} + \frac {a x \sqrt {- \frac {a}{b}} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {a^{2} x}{b} + a x^{3}} - \frac {2 b p x^{3} \sqrt {- \frac {a}{b}} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{\frac {a^{2} x}{b} + a x^{3}} + \frac {b x^{3} \sqrt {- \frac {a}{b}} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {a^{2} x}{b} + a x^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.07, size = 40, normalized size = 0.91 \begin {gather*} \frac {2 \, b p \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} - \frac {p \log \left (b x^{2} + a\right )}{x} - \frac {\log \left (c\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 36, normalized size = 0.82 \begin {gather*} \frac {2\,\sqrt {b}\,p\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________